<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shyza
  Date: 2023/6/19
  Time: 23:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    th,td{
        text-align: center;
    }
</style>
<form action="/add">
    <input type="submit" value="添加">
</form>
<body>
<table border="1">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>住址</th>
        <th>身份</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="i">
        <tr>
            <td>${i.id}</td>
            <td>${i.name}</td>
            <td>${i.age}</td>
            <td>${i.address}</td>
            <td>${i.type}</td>
            <td><a href="/delete?id=${i.id}">删除</a></td>
        </tr>
    </c:forEach>
    <input type="text" placeholder="请输入要查找的姓名">
    <input type="submit" value="查找">
</table>
</body>
</html>
